package com.qf.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("illness_care")
@ApiModel(description = "慢病护理文章实体类")
public class IllnessCare extends Model<IllnessCare> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name="id", value="文章id")
    private Integer id;

    @ApiModelProperty(name="title", value="文章标题")
    private String title;

    @ApiModelProperty(name="content", value="文章内容")
    private String content;

    @ApiModelProperty(name="imageUrl", value="图片路径")
    private String imageUrl;

    @ApiModelProperty(name="createTime", value="创建时间")
    private Date createTime;

    @ApiModelProperty(name="updateTime", value="更新时间")
    private Date updateTime;

    @ApiModelProperty(name="author", value="文章作者")
    private String author;

    @ApiModelProperty(name="collectNum", value="文章收藏总数")
    private Integer collectNum;
}
